<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Seckill extends Model
{
    protected $dates = ['start_time', 'end_time'];

    public function goods()
    {
        return $this->hasOne("App\Models\Goods", 'id', 'goods_id');
    }

/*
    public function setStartTimeAttribute($value)
    {
        $this->attributes['start_time'] = strtotime($value);
    }

    public function setEndTimeAttribute($value)
    {
        $this->attributes['end_time'] = strtotime($value);
    }*/
}
